import 'package:flutter/material.dart';
import '../entity/category_entity.dart';

///
/// 分类页主分类
///
class MainCategoryModel with ChangeNotifier {
  ///主类别当前索引
  int _currentIndex = 0;

  int get currentIndex => _currentIndex;

  void setCurrentIndex(int index) {
    _currentIndex = index;
    notifyListeners();
  }
}

final MainCategoryModel mainCategoryModel = MainCategoryModel();